package org.luxor.eshop.payment.entity.dto;

import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import java.math.BigDecimal;

/**
 * 转账交易参数
 *
 * @author Mr.Yan  @date: 2020/11/24
 */
@Data
public class TransferDto {

    @NotBlank(message = "付款账户，不能为空")
    @ApiModelProperty(value = "买家账户")
    private String paymentAccount;

    @NotBlank(message = "收款账户，不能为空")
    @ApiModelProperty(value = "卖家账户")
    private String receiptAccount;

    @NotNull(message = "交易金额，不能为空")
    @ApiModelProperty(value = "交易金额")
    private BigDecimal amounts;

    @ApiModelProperty(value = "订单号")
    private Long orderId = 0L;
}
